projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48035b7
)
Fix blindingly stupid typo/braino that resulted in mem clobbers in serial
author
robertl
<robertl>
Wed, 15 Sep 2004 07:40:41 +0000
(07:40 +0000)
committer
robertl
<robertl>
Wed, 15 Sep 2004 07:40:41 +0000
(07:40 +0000)
mode.
jeeps/gpsmem.c
patch
|
blob
|
history
diff --git
a/jeeps/gpsmem.c
b/jeeps/gpsmem.c
index 8712fecdc0f329be64beb087c995789baabf75f0..b351a0a43ccfe4e470e1d0ecd6f863dccafb8ecd 100644
(file)
--- a/
jeeps/gpsmem.c
+++ b/
jeeps/gpsmem.c
@@
-39,8
+39,9
@@
GPS_PPacket GPS_Packet_New(void)
{
GPS_PPacket ret;
- int hdr_size = gps_is_usb ? sizeof(garmin_usb_packet) : sizeof
sizeof
(GPS_OPacket) ;
+ int hdr_size = gps_is_usb ? sizeof(garmin_usb_packet) : sizeof(GPS_OPacket) ;
if(!(ret=(GPS_PPacket )malloc(hdr_size)))
+
{
perror("malloc");
fprintf(stderr,"GPS_Packet_New: Insufficient memory");